package net.oschina.app.ui;

import net.oschina.app.R;
import net.oschina.app.fragment.explore.ExploreFragment;
import net.oschina.app.fragment.general.GeneralFragment;
import net.oschina.app.fragment.me.MeFragment;
import net.oschina.app.fragment.move.MoveFragment;

/**
 * Created by Shinelon on 2017/1/13.
 */

public enum MainTab {
    GENERAL(R.string.main_tab_name_news, R.drawable.tab_icon_new, GeneralFragment.class),
    MOVE(R.string.main_tab_name_tweet, R.drawable.tab_icon_tweet, MoveFragment.class),
    QUICK(R.string.main_tab_name_quick, R.drawable.tab_icon_tweet, MoveFragment.class),
    EXPLORE(R.string.main_tab_name_explore, R.drawable.tab_icon_explore, ExploreFragment.class),
    ME(R.string.main_tab_name_my, R.drawable.tab_icon_me, MeFragment.class);

    private int tag;
    private int ResId;
    private Class clazz;

    private MainTab(int tag, int resId, Class clazz) {
        this.tag = tag;
        ResId = resId;
        this.clazz = clazz;
    }

    public int getTag() {
        return tag;
    }

    public void setTag(int tag) {
        this.tag = tag;
    }

    public int getResId() {
        return ResId;
    }

    public void setResId(int resId) {
        ResId = resId;
    }

    public Class getClazz() {
        return clazz;
    }

    public void setClazz(Class clazz) {
        this.clazz = clazz;
    }
}
